﻿
@{
    ViewBag.Title = "ParList";
}
@using YouWei.Infrastructure.Entity;
@using YouWei.Utility;
@model  List<WashShop>

@if (Model.Count <= 0)
{
    <div class="no-data" id="nodata">
        <div class="img-box"></div>
        <div class="text">暂无数据</div>
    </div>
}
else
{
    <table class="table table-bordered table-hover body-table-head">
        <thead>
            <tr>
                <th>
                    ID
                </th>
                <th>
                    名称
                </th>
                <th>
                    地址
                </th>
                <th>
                    经纬度
                </th>
                <th>
                    工作时间
                </th>
                <th>
                    订单数
                </th>
                <th>
                    创建时间
                </th>
                <th class="t_c">
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td class="title">@item.WashID</td>
                    <td>
                        <a style="cursor:pointer;" onclick="edit('@item.WashID')">
                            @item.WashName
                        </a>
                    </td>
                    <td> @item.Address</td>
                    <td> <span>@item.Latitude</span>,<span>@item.Longitude</span> </td>
                    <td> @item.WorkTime</td>
                    <td> @item.OrderCount</td>
                    <td> @item.CreateDate.ToString("yyyy-MM-dd HH:mm")</td>
                    <td>
                        <button type="button" class="btn btn-info btn-xs" onclick="edit('@item.WashID')">编辑</button>
                       
                        <button type="button" class="btn btn-info btn-xs" onclick="del('@item.WashID')">删除</button>
                    </td>
                </tr>
            }
        </tbody>
    </table>
    <input type="hidden" id="total" value="@ViewBag.Total" />
}





